<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; Charset=gb2312">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <title>{$config.web_name}</title>
    <!--Layui-->
    <link href="__STATIC__/plug/layui/css/layui.css" rel="stylesheet" />
    <!--font-awesome-->
    <link href="__STATIC__/plug/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <!--全局样式表-->
    <link href="__CSS__/global.css" rel="stylesheet" />
    {block name="style"}{/block}
</head>
<body>
<!-- 导航 -->
<nav class="blog-nav layui-header">
<div class="blog-container">
<!-- QQ互联登陆 -->
<a href="javascript:;" class="blog-user">
<i class="fa fa-qq"></i>
</a>
<a href="javascript:;" class="blog-user layui-hide">
<img src="__IMG__/Absolutely.jpg" alt="Absolutely" title="Absolutely" />
</a>
<!-- 不落阁 -->
<a class="blog-logo" href="{:url('/')}">16的技术博客</a>
<!-- 导航菜单 -->
<ul class="layui-nav" lay-filter="nav">
    <li class="layui-nav-item ">
    <a href="{:url('/')}"><i class="fa fa-home fa-fw"></i>&nbsp;网站首页</a>
    </li>
    <li class="layui-nav-item">
    <a href="{:url('/technology')}"><i class="fa fa-file-text fa-fw"></i>&nbsp;技术博客</a>
    </li>
    <li class="layui-nav-item">
    <a href="{:url('/dailyLife')}"><i class="fa fa-tags fa-fw"></i>&nbsp;生活日记</a>
    </li>
    <li class="layui-nav-item">
    <a href="{:url('/timeline')}"><i class="fa fa-hourglass-half fa-fw"></i>&nbsp;点点滴滴</a>
    </li>
    <li class="layui-nav-item">
    <a href="{:url('/about')}"><i class="fa fa-info fa-fw"></i>&nbsp;关于本站</a>
    </li>
</ul>
<!-- 手机和平板的导航开关 -->
<a class="blog-navicon" href="javascript:;">
<i class="fa fa-navicon"></i>
</a>
</div>
</nav>
{block name="body"}

{/block}
<!--侧边导航-->
<ul class="layui-nav layui-nav-tree layui-nav-side blog-nav-left layui-hide" lay-filter="nav">
    <li class="layui-nav-item " data-alias="index">
        <a href="{:url('/')}"><i class="fa fa-home fa-fw"></i>&nbsp;网站首页</a>
    </li>
    <li class="layui-nav-item" data-alias="index">
        <a href="{:url('/technology')}"><i class="fa fa-file-text fa-fw"></i>&nbsp;技术博客</a>
    </li>
    <li class="layui-nav-item">
        <a href="{:url('/dailyLife')}"><i class="fa fa-tags fa-fw"></i>&nbsp;生活日记</a>
    </li>
    <li class="layui-nav-item">
        <a href="{:url('/timeline')}"><i class="fa fa-hourglass-half fa-fw"></i>&nbsp;点点滴滴</a>
    </li>
    <li class="layui-nav-item">
        <a href="{:url('about')}"><i class="fa fa-info fa-fw"></i>&nbsp;关于本站</a>
    </li>
</ul>
<!-- 底部 -->
<footer class="blog-footer">
    <p><span>Copyright</span><span>&copy;</span><span>2017</span><a href="http://www.lyblogs.cn">不落阁</a><span>Design By LY</span></p>
    <p><a href="http://www.miibeian.gov.cn/" target="_blank">蜀ICP备16029915号-1</a></p>
</footer>
<!--分享窗体-->
<div class="blog-share layui-hide">
    <div class="blog-share-body">
        <div style="width: 200px;height:100%;">
            <div class="bdsharebuttonbox">
                <a class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                <a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                <a class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                <a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
            </div>
        </div>
    </div>
</div>
<!--遮罩-->
<div class="blog-mask animated layui-hide"></div>
<script src="https://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script>
<!-- layui.js -->
<script src="__STATIC__/plug/layui/layui.js"></script>
<!-- 全局脚本 -->
<script src="__JS__/global.js"></script>
<script type="text/javascript">
    var url = document.location.toString();
    var arrUrl = url.split("?");
    var baseUrl = arrUrl[0]+'?s=/';

    function urlAjax(url,data,success_func,error_func,method){
        if(!method) method = 'get';
        $.ajax({
            type: method,
            url: url,
            data: data,
            dataType: "json",
            success: function(data){
                success_func(data);
            },
            error : function(){
                error_func();
            }
        });
    }

    var alias = "{$alias}";

    if (alias && alias != '/' && alias != 'index') {
        $('.layui-nav-item').each(function(){
            if($(this).children('a').attr('href').indexOf(alias) != -1){
                $(this).addClass('layui-this');
            }
        });
    }else{
        var a = $('.layui-nav-item')[0];
        $(a).addClass('layui-this');
    }

</script>
{block name="script"}{/block}
</body>
</html>